set hilite of button "Browsing" to the userLevel = 1
set hilite of button "Typing" to the userLevel = 2
set hilite of button "Painting" to the userLevel = 3
set hilite of button "Authoring" to the userLevel = 4
set hilite of button "Scripting" to the userLevel = 5
set visible of button "Text Arrows" to the userlevel >= 2
set visible of button "Power Keys" to the userLevel >= 3
set visible of button "Blind Typing" to the userLevel = 5
set hilite of button "Text Arrows" to the textArrows
set hilite of button "Power Keys" to the powerKeys
set hilite of button "Blind Typing" to the blindTyping
else
set hilite of the target to false
end if
end setUserLevel
on closeCard
hide card field "Local Help"
end closeCard
-- part 1 (button)
-- low flags: 00
-- high flags: A006
-- rect: left=95 top=145 right=166 bottom=223
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Browsing
----- HyperTalk script -----
on mouseUp
setUserLevel 1
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: A006
-- rect: left=95 top=187 right=208 bottom=223
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Painting
----- HyperTalk script -----
on mouseUp
setUserLevel 3
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: A006
-- rect: left=95 top=208 right=229 bottom=223
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Authoring
----- HyperTalk script -----
on mouseUp
setUserLevel 4
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: A006
-- rect: left=95 top=229 right=250 bottom=223
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Scripting
----- HyperTalk script -----
on mouseUp
setUserLevel 5
end mouseUp
-- part 5 (button)
-- low flags: 80
-- high flags: E005
-- rect: left=211 top=187 right=208 bottom=314
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Power Keys
----- HyperTalk script -----
on mouseUp
set powerKeys to the hilite of button "Power Keys"
end mouseUp
-- part 7 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=168 top=91 right=111 bottom=392
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: User Name
----- HyperTalk script -----
on closeField
global userName
put card field "User Name" into userName
end closeField
-- part 8 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=95 top=166 right=187 bottom=223
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Typing
----- HyperTalk script -----
on mouseUp
setUserLevel 2
end mouseUp
-- part 9 (field)
-- low flags: 81
-- high flags: 0000
-- rect: left=173 top=125 right=144 bottom=198
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: User Level
-- part 13 (button)
-- low flags: 80
-- high flags: E005
-- rect: left=211 top=229 right=250 bottom=314
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Blind Typing
----- HyperTalk script -----
on mouseUp
set blindTyping to the hilite of button "Blind Typing"
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: A005
-- rect: left=211 top=166 right=187 bottom=314
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Text Arrows
----- HyperTalk script -----
on mouseUp
set textArrows to the hilite of button "Text Arrows"
end mouseUp
-- part 15 (field)
-- low flags: 81
-- high flags: 6007
-- rect: left=18 top=62 right=298 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Local Help
----- HyperTalk script -----
on mouseUp
hide card field id 15
end mouseUp
-- part contents for background part 6
----- text -----
User Preferences
-- part contents for card part 9
----- text -----
2
-- part contents for card part 15
----- text -----
The Preferences card lets you tell HyperCard what level of functionality you want. Five user levels are available:
1. BROWSING Navigation based on menus and buttons .
2. TYPING Adds text editing (type/cut/copy/paste).
3. PAINTING Adds the painting tools.
4. AUTHORING Adds creating buttons, fields and simple links.
5. SCRIPTING Adds scripting with the HyperTalk language.
For more information on these or the following subjects, see the Help stack.
• Clicking the "Text Arrows" button on this card allows a user to navigate in a text field using the four arrow keys of the keyboard. You can click on "Text Arrows" when at user level 2,3,4 or 5.
• A button for selecting "Power Keys" appears on this card if the user has selected level 3,4 or 5. "Power Keys" provide keyboard short cuts for Paint functions (e.g. typing M for multiple drawing...). Clicking this check box is the same as choosing "Power Keys" in the "Options" menu.
• A button for selecting "Blind Typing" is available only for user-level 5. It allows you to type a message in the message box while it is hidden.
• The user level can be set by using the HyperTalk command "set userlevel to 2". Typing this in the message box sets the user level to Typing mode.
• The three path cards in the Home stack are only accessible when user-level is set to 5.